# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-slide
_pkgname=sphinxcontrib-slide
pkgver=1.0.0
pkgrel=3
pkgdesc="Sphinx FindAnything extension"
url="https://pypi.org/project/sphinxcontrib-slide"
arch="noarch"
license="BSD" # No LICENSE file
depends="python3 py3-sphinx py3-setuptools"
makedepends="py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-sphinxcontrib-slide" # Backwards compatibility
provides="py-sphinxcontrib-slide=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
67bbcbf11668fed8ad7ea185b32590921ba4f37ae2c4fb3243fda8a1f377c0f3169056c6b3e6c32c4af7b8a74172f050abdc2c72062b009dba72069d6a19ab65  sphinxcontrib-slide-1.0.0.tar.gz
"
